<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String contextPath = request.getContextPath();
%>
<html>
<head>
    <title>我的博客：${article.title}</title>
</head>
<link rel="shortcut icon" href="<%=contextPath%>/img/bitbug_favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="<%=contextPath%>/static/editormd/css/editormd.css"/>
<%--    <script src="<%=contextPath%>/static/editormd/editormd.js"></script>--%>
    <script src="<%=contextPath%>/static/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="<%=contextPath%>/static/editormd/css/editormd.preview.css" />

<%--<script src="<%=contextPath%>/static/editormd/examples/js/jquery.min.js"></script>--%>
<script src="<%=contextPath%>/static/editormd/lib/marked.min.js"></script>
<script src="<%=contextPath%>/static/editormd/lib/prettify.min.js"></script>
<script src="<%=contextPath%>/static/editormd/lib/raphael.min.js"></script>
<script src="<%=contextPath%>/static/editormd/lib/underscore.min.js"></script>
<script src="<%=contextPath%>/static/editormd/lib/sequence-diagram.min.js"></script>
<script src="<%=contextPath%>/static/editormd/lib/flowchart.min.js"></script>
<script src="<%=contextPath%>/static/editormd/lib/jquery.flowchart.min.js"></script>
<script src="<%=contextPath%>/static/editormd/editormd.min.js"></script>
<body>
<jsp:include page="comm/top.jsp"/>
<div class="container">

    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">${article.title}</h3>

        </div>
        <div class="question-view">
            <textarea style="display:none;" >${article.content}</textarea>
            <span>${article.content}</span>
        </div>
    </div>
    <h3 class="panel-title">发布日期：${article.time}</h3>
    <h3 class="panel-title">修改日期：</h3>
</div>
<script type="text/javascript">
    $(function () {
        editormd.markdownToHTML("question-view", {
            path: "/static/editormd/lib/",  // Autoload modules mode, codemirror, marked... dependents libs path
            htmlDecode      : "style,script,iframe",
            emoji           : true,
            taskList        : true,
            tex             : true,  // 默认不解析
            flowChart       : true,  // 默认不解析
            sequenceDiagram : true  // 默认不解析
        });
    });
</script>
</body>
</html>